package cn.home.sysmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.sysmanagement.mapper.HomeDoctorMessageMapper;
import cn.home.sysmanagement.domain.HomeDoctorMessage;
import cn.home.sysmanagement.service.IHomeDoctorMessageService;

/**
 * 公告-医生中间Service业务层处理
 * 
 * @author homedoctor
 * @date 2025-04-10
 */
@Service
public class HomeDoctorMessageServiceImpl implements IHomeDoctorMessageService 
{
    @Autowired
    private HomeDoctorMessageMapper homeDoctorMessageMapper;

    /**
     * 查询公告-医生中间
     * 
     * @param doctorid 公告-医生中间主键
     * @return 公告-医生中间
     */
    @Override
    public HomeDoctorMessage selectHomeDoctorMessageByDoctorid(Long doctorid)
    {
        return homeDoctorMessageMapper.selectHomeDoctorMessageByDoctorid(doctorid);
    }

    /**
     * 查询公告-医生中间列表
     * 
     * @param homeDoctorMessage 公告-医生中间
     * @return 公告-医生中间
     */
    @Override
    public List<HomeDoctorMessage> selectHomeDoctorMessageList(HomeDoctorMessage homeDoctorMessage)
    {
        return homeDoctorMessageMapper.selectHomeDoctorMessageList(homeDoctorMessage);
    }

    /**
     * 新增公告-医生中间
     * 
     * @param homeDoctorMessage 公告-医生中间
     * @return 结果
     */
    @Override
    public int insertHomeDoctorMessage(HomeDoctorMessage homeDoctorMessage)
    {
        return homeDoctorMessageMapper.insertHomeDoctorMessage(homeDoctorMessage);
    }

    /**
     * 修改公告-医生中间
     * 
     * @param homeDoctorMessage 公告-医生中间
     * @return 结果
     */
    @Override
    public int updateHomeDoctorMessage(HomeDoctorMessage homeDoctorMessage)
    {
        return homeDoctorMessageMapper.updateHomeDoctorMessage(homeDoctorMessage);
    }

    /**
     * 批量删除公告-医生中间
     * 
     * @param doctorids 需要删除的公告-医生中间主键
     * @return 结果
     */
    @Override
    public int deleteHomeDoctorMessageByDoctorids(Long[] doctorids)
    {
        return homeDoctorMessageMapper.deleteHomeDoctorMessageByDoctorids(doctorids);
    }

    /**
     * 删除公告-医生中间信息
     * 
     * @param doctorid 公告-医生中间主键
     * @return 结果
     */
    @Override
    public int deleteHomeDoctorMessageByDoctorid(Long doctorid)
    {
        return homeDoctorMessageMapper.deleteHomeDoctorMessageByDoctorid(doctorid);
    }
}
